﻿using System;
using System.Configuration;
using WF.Common;

namespace WF.Web
{
    public partial class LeftMenu : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string hrBlockLimite = new ConfigHelper().HrBlockLimite;
            string[] arHrBlockLimite = hrBlockLimite.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries);
            foreach (string deptCode in arHrBlockLimite)
            {
                if (((UserProfile)Session[SessionKeys.CurrentUser]).DeptPath == deptCode)
                {
                    HrTab.Visible = true;
                    break;
                }
            }
        }
    }
}